﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataAccess;
using Entity;

namespace Business
{
    public class DocumentBO
    {
        public static Document GetById(int id)
        {
            using (var dc = new DB())
            {
                return dc.StoredProcedures.DocumentGetById(id);
            }
        }

        public static void Insert(Document document)
        {
            using (var db = new DB(true))
            {
                db.StoredProcedures.DocumentInsert(document);
            }
        }
    }
}
